import { createSlice, PayloadAction } from '@reduxjs/toolkit';

const initialState = {
    userEmail: '',
};

const userInfoSlice = createSlice({
    name: 'userInfo',
    initialState,
    reducers: {
        setStoreEmail(state, action: PayloadAction<string>) {
            state.userEmail = action.payload;
        },
    },
});

export const { setStoreEmail } = userInfoSlice.actions;

export default userInfoSlice.reducer;
